package com.anpy.bill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;


/**
 * @author Administrator
 */
@Data
@TableName(value = "T_CARD")
@Entity
public class CardEntity {

    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField(value = "deposit_name")
    private String depositName;
    private String money;
    @TableField(value = "card_number")
    private String cardNumber;
    @TableField(value = "user_id")
    private Integer userId = 1;
    @TableField(value = "deposit_type")
    private Integer depositType;

    @TableField(value = "deposit_icon")
    private String depositIcon;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

}
